package com.migration.model.newdb;

import jakarta.persistence.*;
import lombok.Data;
import java.io.Serializable;

/**
 * 设备类型表 实体类
 * 表名：risk_device_type
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "risk_device_type")
public class RiskDeviceType implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键ID
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 租户ID
     */
    @Column(name = "tenant_id", nullable = false)
    private Long tenantId;
    
    /**
     * 上级ID
     * 默认值: 0
     */
    @Column(name = "parent_id", nullable = false)
    private Long parentId;
    
    /**
     * 设备类型名称
     */
    @Column(name = "device_type_name", nullable = false, length = 50)
    private String deviceTypeName;
    
    /**
     * 创建时间
     */
    @Column(name = "create_time", length = 20)
    private String createTime;
    
    /**
     * 更新时间
     */
    @Column(name = "update_time", length = 20)
    private String updateTime;
    
    /**
     * 创建人
     */
    @Column(name = "create_by")
    private Long createBy;
    
    /**
     * 更新人
     */
    @Column(name = "update_by")
    private Long updateBy;
    
    /**
     * 逻辑删除标志（0：正常，1：删除）
     * 默认值: 0
     */
    @Column(name = "is_del")
    private Boolean isDel;
    
    @Override
    public String toString() {
        return "RiskDeviceType{" +
            "id=" + id +
            ", tenantId=" + tenantId +
            ", parentId=" + parentId +
            ", deviceTypeName=" + deviceTypeName +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", createBy=" + createBy +
            ", updateBy=" + updateBy +
            ", isDel=" + isDel +
        '}';
    }
} 